﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Mvc3Demo.Controllers
{
    public abstract class BaseController : Controller
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
        }

        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            FooterText = "Just footer text";
            base.OnActionExecuted(filterContext);
        }

        protected string FooterText { get { return ViewBag.FooterText; } set { ViewBag.FooterText = value; } }

        protected string HeaderText { get { return ViewBag.HeaderText; } set { ViewBag.HeaderText = value; } }
    }
}
